package com.cwz.service;

import com.cwz.entity.Literature;
import com.cwz.param.LiteratureHttpQueryParam;
import com.cwz.param.LiteratureStatisticsParam;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.util.Map;

public interface LiteratureService extends IService{
    Map<String, Object> save(Literature literature, HttpSession session);
    Map<String, Object> upload(MultipartFile file, HttpSession session);
    Map<String, Object> page(LiteratureHttpQueryParam param, HttpSession session);
    Map<String, Object> disable(Integer id, HttpSession session);
    Map<String, Object> detail(Integer id, HttpSession session);
    void download(Integer id, HttpServletResponse response);
    Map<String, Object> statistic(LiteratureStatisticsParam param, HttpSession session);
}